/*----------------------------------------------------------------
 *  Author:        Zun Huang
 *  Written:       10/02/2014
 *  Last updated:  
 *  
 *  Description: order list that contains all orders of that have  
 *  been completed by one specific member
 *
 *----------------------------------------------------------------*/

package JavaSource;
import java.io.Serializable;
import java.util.*;
/**
 *
 * @author huangzun
 */
public class OrderHistory implements Serializable  {
    
    //attributes 
    
    private int customerID;
    private LinkedList<Order> orderList;
    private LinkedList<Payment> paymentList;
    
    //constructors
    
    public OrderHistory(int customerID, LinkedList<Order> orderList, LinkedList<Payment> paymentList) 
    {
        this.customerID = customerID;
        this.orderList = orderList;
        this.paymentList = paymentList;
    }
    
    
    
    //methods 

    public int getCustomerID() {
        return customerID;
    }

    public void setCustomerID(int customerID) {
        this.customerID = customerID;
    }

    public LinkedList<Order> getOrderList() {
        return orderList;
    }

    public void setOrderList(LinkedList<Order> orderList) {
        this.orderList = orderList;
    }

    public LinkedList<Payment> getPaymentList() {
        return paymentList;
    }

    public void setPaymentList(LinkedList<Payment> paymentList) {
        this.paymentList = paymentList;
    }
    
    public void removeOrderRecord(Order order)
    {
        
    }//remove an order record from past order list
    
    public int updateDishRating()
    {
        return 0;
    }//update the rating score for a dish
    
}
